package com.channel.springcloudserviceprotal;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableHystrix //开启Hystrix(服务 熔断、降级  ) 里边包含了 @EnableCircuitBreaker 注解
// @EnableCircuitBreaker  //开启Hystrix
@EnableEurekaClient // 开启Eureka注册中心支持
@EnableFeignClients({"com.channel"}) // 开启Feign客户端调用支持
@SpringBootApplication
/**
 * SpirngClouddSpplication 包含SpringBoot Eureka 和 Hystrix 三个注解
 * @SpringBootApplication
 * @EnableDiscoveryClient
 * @EnableCircuitBreaker
 */
//@SpringCloudApplication
public class protalApplication {

    public static void main(String[] args) {
        SpringApplication.run(protalApplication.class, args);
    }

}
